var quhao = document.querySelector('.quhao')
var quhaoi = document.querySelector('.quhao-i')
var i = document.querySelector('.icon-xiangxiabiankuangsanjiao')
var ul = document.querySelector('.ul')
var a = true
quhao.onclick = function () {
  quhaoi.classList.toggle('show')

  i.classList.toggle('xz')
  if (a){
    quhaoi.style.height = ul.children[0].offsetHeight * ul.children.length + 'px'
    a = false
  }else {
    quhaoi.style.height = 0
    a = true
  }
}
